package com.fhz.day006.sp

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

/**
 * 时间:2021/10/20
 * @author msfeng
 * 简述: TODO
 */
class MyFactory(private var n:Int) : ViewModelProvider.Factory{
    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return Main3ViewModel(n) as T
    }

}
